.class Lcom/brixd/niceapp/activity/BaseDetailActivity$25$1;
.super Ljava/lang/Object;
.source "BaseDetailActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/activity/BaseDetailActivity$25;->onClick(Landroid/view/View;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$1:Lcom/brixd/niceapp/activity/BaseDetailActivity$25;

.field final synthetic val$dialog:Lcom/brixd/niceapp/ui/ConfirmDialog;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/activity/BaseDetailActivity$25;Lcom/brixd/niceapp/ui/ConfirmDialog;)V
    .registers 3
    .param p1, "this$1"    # Lcom/brixd/niceapp/activity/BaseDetailActivity$25;

    .prologue
    .line 887
    iput-object p1, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$25$1;->this$1:Lcom/brixd/niceapp/activity/BaseDetailActivity$25;

    iput-object p2, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$25$1;->val$dialog:Lcom/brixd/niceapp/ui/ConfirmDialog;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .registers 11
    .param p1, "v"    # Landroid/view/View;

    .prologue
    .line 891
    iget-object v1, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$25$1;->this$1:Lcom/brixd/niceapp/activity/BaseDetailActivity$25;

    iget-object v1, v1, Lcom/brixd/niceapp/activity/BaseDetailActivity$25;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    iget-object v2, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$25$1;->this$1:Lcom/brixd/niceapp/activity/BaseDetailActivity$25;

    iget-object v2, v2, Lcom/brixd/niceapp/activity/BaseDetailActivity$25;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    invoke-virtual {v2}, Lcom/brixd/niceapp/activity/BaseDetailActivity;->getContext()Landroid/content/Context;

    move-result-object v2

    const-string v3, ""

    const v4, 0x7f040003

    const/4 v5, 0x0

    const/4 v6, 0x0

    invoke-static {v2, v3, v4, v5, v6}, Lcom/zuiapps/suite/utils/hud/ProgressHUD;->show(Landroid/content/Context;Ljava/lang/CharSequence;IZLandroid/content/DialogInterface$OnCancelListener;)Lcom/zuiapps/suite/utils/hud/ProgressHUD;

    move-result-object v2

    # setter for: Lcom/brixd/niceapp/activity/BaseDetailActivity;->mProgressHUD:Lcom/zuiapps/suite/utils/hud/ProgressHUD;
    invoke-static {v1, v2}, Lcom/brixd/niceapp/activity/BaseDetailActivity;->access$2102(Lcom/brixd/niceapp/activity/BaseDetailActivity;Lcom/zuiapps/suite/utils/hud/ProgressHUD;)Lcom/zuiapps/suite/utils/hud/ProgressHUD;

    .line 892
    iget-object v1, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$25$1;->this$1:Lcom/brixd/niceapp/activity/BaseDetailActivity$25;

    iget-object v1, v1, Lcom/brixd/niceapp/activity/BaseDetailActivity$25;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    iget-object v1, v1, Lcom/brixd/niceapp/activity/BaseDetailActivity;->mUserModel:Lcom/brixd/niceapp/model/UserModel;

    invoke-virtual {v1}, Lcom/brixd/niceapp/model/UserModel;->getUid()I

    move-result v1

    invoke-static {v1}, Lcom/brixd/niceapp/util/SecrUtils;->makeToken(I)Lcom/brixd/niceapp/model/Token;

    move-result-object v0

    .line 893
    .local v0, "token":Lcom/brixd/niceapp/model/Token;
    iget-object v1, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$25$1;->this$1:Lcom/brixd/niceapp/activity/BaseDetailActivity$25;

    iget-object v1, v1, Lcom/brixd/niceapp/activity/BaseDetailActivity$25;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    iget-object v1, v1, Lcom/brixd/niceapp/activity/BaseDetailActivity;->mRequest:Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;

    iget-object v2, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$25$1;->this$1:Lcom/brixd/niceapp/activity/BaseDetailActivity$25;

    iget-object v2, v2, Lcom/brixd/niceapp/activity/BaseDetailActivity$25;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    iget-object v2, v2, Lcom/brixd/niceapp/activity/BaseDetailActivity;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    invoke-virtual {v2}, Lcom/brixd/niceapp/model/BaseAppModel;->getId()I

    move-result v2

    const/4 v3, 0x2

    invoke-virtual {v0}, Lcom/brixd/niceapp/model/Token;->getTimestamp()J

    move-result-wide v4

    invoke-virtual {v0}, Lcom/brixd/niceapp/model/Token;->getUid()I

    move-result v6

    invoke-virtual {v0}, Lcom/brixd/niceapp/model/Token;->getSecr()Ljava/lang/String;

    move-result-object v7

    new-instance v8, Lcom/brixd/niceapp/activity/BaseDetailActivity$25$1$1;

    invoke-direct {v8, p0}, Lcom/brixd/niceapp/activity/BaseDetailActivity$25$1$1;-><init>(Lcom/brixd/niceapp/activity/BaseDetailActivity$25$1;)V

    invoke-interface/range {v1 .. v8}, Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;->deleteCommunityApp(IIJILjava/lang/String;Lretrofit/Callback;)V

    .line 913
    iget-object v1, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$25$1;->val$dialog:Lcom/brixd/niceapp/ui/ConfirmDialog;

    invoke-virtual {v1}, Lcom/brixd/niceapp/ui/ConfirmDialog;->dismiss()V

    .line 914
    return-void
.end method
